import { UserRole } from '../store/user'

export default [
  {
    path: '/home',
    meta: { title: '系统总览', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    component: () => import('../views/home/index.vue')
  },
  {
    path: '/zxfkgl',
    meta: { title: '执行反馈管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/zxfkgl/zxfkgl'
    },
    children: [
      {
        path: '/zxfkgl/zxfkgl',
        meta: { title: '执行反馈管理' },
        component: () => import('../views/zxfkgl/zxfkgl.vue')
      }
    ]
  },
  {
    path: '/xtzxda',
    meta: { title: '协同执行档案', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/xtzxda/xtzxda'
    },
    children: [
      {
        path: '/xtzxda/xtzxda',
        meta: { title: '协同执行档案' },
        component: () => import('../views/xtzxda/xtzxda.vue')
      }
    ]
  },
  {
    path: '/bwlgl',
    meta: { title: '备忘录管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/bwlgl/bwlgl'
    },
    children: [
      {
        path: '/bwlgl/bwlgl',
        meta: { title: '备忘录管理' },
        component: () => import('../views/bwlgl/bwlgl.vue')
      },
      {
        path: '/bwlgl/csqd',
        meta: { title: '措施清单' },
        component: () => import('../views/bwlgl/csqd.vue')
      }
    ]
  },
  {
    path: '/mdlxgl',
    meta: { title: '名单类型管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/mdlxgl/mdlxgl'
    },
    children: [
      {
        path: '/mdlxgl/mdlxgl',
        meta: { title: '名单类型管理' },
        component: () => import('../views/mdlxgl/mdlxgl.vue')
      }
    ]
  },
  {
    path: '/jcgl',
    meta: { title: '奖惩管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/jcgl/hmdgl'
    },
    children: [
      {
        path: '/jcgl/hmdgl',
        meta: { title: '红名单管理' },
        component: () => import('../views/jcgl/hmdgl.vue')
      },
      {
        path: '/jcgl/hmdgl_',
        meta: { title: '黑名单管理' },
        component: () => import('../views/jcgl/hmdgl_.vue')
      }
    ]
  },
  {
    path: '/rzgl',
    meta: { title: '日志管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/rzgl/czrz'
    },
    children: [
      {
        path: '/rzgl/czrz',
        meta: { title: '日志管理' },
        component: () => import('../views/rzgl/czrz.vue')
      }
    ]
  },
  {
    path: '/sxjlcsk',
    meta: { title: '守信激励措施库', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/sxjlcsk/sxjlcsgl'
    },
    children: [
      {
        path: '/sxjlcsk/sxjlcsgl',
        meta: { title: '守信激励措施管理' },
        component: () => import('../views/sxjlcsk/sxjlcscxgl.vue')
      }
    ]
  },
  {
    path: '/sxcjcsk',
    meta: { title: '失信惩戒措施库', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/sxcjcsk/sxcjcsgl'
    },
    children: [
      {
        path: '/sxcjcsk/sxcjcsgl',
        meta: { title: '失信惩戒措施管理' },
        component: () => import('../views/sxcjcsk/sxcjcsgl.vue')
      }
    ]
  },
  {
    path: '/sxjlss',
    meta: { title: '守信激励实施', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/sxjlss/sxjlal'
    },
    children: [
      {
        path: '/sxjlss/sxjlal',
        meta: { title: '守信激励案例' },
        component: () => import('../views/sxjlss/sxjlal.vue')
      }
    ]
  },
  {
    path: '/sxcjss',
    meta: { title: '失信惩戒实施', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/sxcjss/sxcjal'
    },
    children: [
      {
        path: '/sxcjss/sxcjal',
        meta: { title: '失信惩戒案例' },
        component: () => import('../views/sxcjss/sxcjal.vue')
      }
    ]
  },
  {
    path: '/sxjlcxgl',
    meta: { title: '守信激励成效管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/sxjlcxgl/sxjlcxgl'
    },
    children: [
      {
        path: '/sxjlcxgl/sxjlcxgl',
        meta: { title: '守信激励成效管理' },
        component: () => import('../views/sxjlcxgl/sxjlcxgl.vue')
      }
    ]
  },
  {
    path: '/sxcjcxgl',
    meta: { title: '失信惩戒成效管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    redirect: {
      path: '/sxcjcxgl/sxcjcxgl'
    },
    children: [
      {
        path: '/sxcjcxgl/sxcjcxgl',
        meta: { title: '失信惩戒成效管理' },
        component: () => import('../views/sxcjcxgl/sxcjcxgl.vue')
      }
    ]
  },
  {
    path: '/jkkfgl',
    meta: { title: '接口开放管理', roles: [UserRole.ADMIN, UserRole.PUNISHMENTADMIN, UserRole.PUNISHMENTUSER] },
    component: () => import('../views/jkkfgl.vue')
  }
]
